<?php

class JobWidget extends CWidget {

    public $title = 'User login';
    public $visible = true;
    public $array = array();
    public $model;

    public function init() {
        if ($this->visible) {
			$this->renderContent();  
        }
    }
    protected function renderContent() {
        $this->model = Inbox::model()->findByAttributes(array('id'=>Yii::app()->user->id));
        $this->render('ViewUser',array());
    }

}

?>
